import { Allow, IsInt, IsString } from 'class-validator';
import { Dict } from '../../dict/entities/dict.entity';
import { CommonColumnEntity } from '../../../../util/entity/common.column.entity';

export class CreateDictSonDto extends CommonColumnEntity {
  @IsString()
  name: string;

  @IsInt()
  code: number;

  @Allow()
  sort?: number;

  dict?: Dict;
}
